package com.example.mapper;


import cn.hutool.json.JSONObject;
import com.example.entity.Trainings;
import com.example.entity.User;

import java.util.List;

public interface TrainingMapper {
    boolean add(Trainings trainings);

    List<JSONObject> listByUser(User user);

    boolean deleteTraining(Trainings trainings);

    boolean updateTraining(Trainings trainings);

    List<Trainings> listAll();
}
